#!/bin/sh

# Build zipfiles for ORBit2 on Win32: Separate runtime and developer
# ones. After running make install, run this.

ZIP=/tmp/ORBit2-@ORBIT_VERSION@.zip
DEVZIP=/tmp/ORBit2-dev-@ORBIT_VERSION@.zip

cd @prefix@
rm $ZIP

zip $ZIP -@ <<EOF
COPYING.LIB-2
bin/libORBit-2-0.dll
bin/libORBit-imodule-2-0.dll
bin/libORBitCosNaming-2-0.dll
etc/orbitrc
EOF

rm $DEVZIP
zip -r $DEVZIP -@ <<EOF
bin/orbit-idl-2.exe
bin/ior-decode-2.exe
bin/typelib-dump.exe
include/orbit-2.0
lib/libORBit-2.dll.a
lib/libORBit-imodule-2.dll.a
lib/libORBitCosNaming-2.dll.a
lib/libname-server-2.a
lib/pkgconfig/ORBit-2.0.pc
lib/pkgconfig/ORBit-CosNaming-2.0.pc
lib/pkgconfig/ORBit-idl-2.0.pc
lib/pkgconfig/ORBit-imodule-2.0.pc
share/aclocal/ORBit2.m4
share/idl/orbit-2.0
share/gtk-doc/html/ORBit2
EOF
